package com.huahua.api.entity.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Huahua-Ai
 * @date 2025-01-21 22:05:00
 * @description 网络剪贴板实体类
 */
@Table("web_clipboard")
@Data
public class WebClipboard implements Serializable {

    @Id
    private Long id;

    @Column("share_id")
    private String shareId;

    @Column("password")
    private String password;

    @Column("admin_password")
    private String adminPassword;

    @Column("content")
    private String content;

    @Column("is_editable")
    private Boolean isEditable;

    @Column("expire_time")
    private LocalDateTime expireTime;

    @Column("created_time")
    private LocalDateTime createdTime;

    @Column("updated_time")
    private LocalDateTime updatedTime;

    @Column("access_count")
    private Integer accessCount;

    @Column("last_access_time")
    private LocalDateTime lastAccessTime;

    @Column("max_access_count")
    private Integer maxAccessCount;
}